package com.peanut.entity.vo;

import com.mvc.annotation.NotEmpty;
import com.mvc.annotation.NotNull;
import com.orm.annotation.TableFiled;
import com.peanut.entity.Menu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class MenuTreeVo {
	private Integer id;
	private String menuName;
	private Integer parentId;    // 父级菜单id
	private Integer isShow;
	private String iconClassName;
	private String menuUrl;   // 前台菜单的url
	
	@TableFiled(exist = false)
	private List<Menu> children;  // 二级菜单
	
	public MenuTreeVo() {
		children = new ArrayList<>();
	}
}
